-
Notifications
You must be signed in to change notification settings - Fork 986
Remove openai latest dep restriction #14423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small comment
} | ||
return Value.of(result); | ||
} | ||
|
||
@Nullable | ||
private static Value<String> toValue(@Nullable String string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, we have null handling here because of the very rare situation where reflection fails for some reason - this is despite also having nice isAvailable
checks.
Any thoughts on having invokeStringHandle
return ""
in the failure case since we expect it to basically not happen?
Otherwise, it's probably worth adding a comment summarizing the above to clarify this is an issue with the code here and not the API responses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meant to approve with the nit
cc @anuraaga